(function() {
    let t;
    $.fn.extend({
      lazyLoad() {
        if (t) return;
        t = setTimeout(() => {
          console.log(111);
  
          let h1 = window.innerHeight || document.documentElement.clientHeight;
          let h2 = document.documentElement.scrollTop || document.body.scrollTop;
          let totalTOP = h1 + h2;
          let imgs = document.querySelectorAll("img");
          imgs.forEach((item, index) => {
            let Top = item.offsetTop;
            if (Top <= totalTOP) {
              item.src = item.getAttribute("data-original");
            }
          });
          t = null;
        }, 300);
      }
    });
  })();
  